.PHONY:main
main:args1 args2 args3 singleton1 singleton2 factory1 factory2 factory3 builder proxy
args1:args1.cc
	gcc -o $@ $^
args2:args2.cc
	gcc -o $@ $^
args3:args3.cc
	g++ -o $@ $^ -std=c++11
singleton1:singleton1.cc
	g++ -o $@ $^ -std=c++11
singleton2:singleton2.cc
	g++ -o $@ $^ -std=c++11
factory1:factory1.cc
	g++ -o $@ $^ -std=c++11
factory2:factory2.cc
	g++ -o $@ $^ -std=c++11
factory3:factory3.cc
	g++ -o $@ $^ -std=c++11
builder:builder.cc
	g++ -o $@ $^ -std=c++11
proxy:proxy.cc
	g++ -o $@ $^ -std=c++11
.PHONY:clean 
clean:
	rm -f args1 args2 args3 singleton1 singleton2 factory1 factory2 factory3 builder proxy
